#include <stdio.h>

int n,i,j;
int a[100][100];

int main(){
	scanf("%d",&n);
	a[1][1] = 1;
	for (i = 2; i<=n; i++)
		for (j = 1; j<=i; j++)
			a[i][j] = a[i-1][j] + a[i-1][j-1];
	for (i = 1; i<=n; i++){
		for (j = 1; j<=i; j++)
			printf("%d ",a[i][j]);
		printf("\n"); 
	}
	return 0;
}
